<h1>Listing topic categories</h1>

<table>
  <tr>
    <td><b>Name</b></td>
    <td><b>Description</b></td>
    <td><b>Price</b></td>
    <td><b>Quantity</b></td>
    <td><b>Category_id</b></td>
    <td><b>Category_type</b></td>
  </tr>

<% for topic_category in @topic_categories %>
  <tr>
    <td>
      <%= topic_category.name %>
    </td>

    <td>
      <%= topic_category.description %>
    </td>

    <td>
      <%= topic_category.price %>
    </td>

    <td>
      <%= topic_category.quantity %>
    </td>

    <td>
      <%= topic_category.category_id %>
    </td>

    <td>
      <%= topic_category.category_type %>
    </td>
    
    <td><%= link_to 'Show', topic_category %></td>
    <td><%= link_to 'Edit', edit_topic_category_path(topic_category) %></td>
    <td><%= link_to 'Destroy', topic_category, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New topic_category', new_topic_category_path %>
